package com.jmxcfc.blfsc.langyu.util;

import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;

import java.util.Map;

/**
 * <p>
 * 朗宇公共工具
 * </p>
 *
 * @author xuewenzhen
 * @since 2024/11/4 17:26
 */
public class LangYuCommonUtils {

    public static MultiValueMap<String,String> mapToMultiValueMap(Map<String,String> dataMap){
        MultiValueMap<String,String> multiValueMap = new LinkedMultiValueMap<>();
        for (Map.Entry<String, String> entry : dataMap.entrySet()){
            multiValueMap.add(entry.getKey(), entry.getValue());
        }
        return multiValueMap;
    }
}
